package com.xmy.cultivate.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xmy.cultivate.entity.RolePermission;
import com.xmy.cultivate.entity.StaffPermission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author min
 * @since 2022-09-25
 */
public interface IStaffPermissionService extends IService<StaffPermission> {

    public List<Long> getStaffPermissionAllByStaffId(String staffId);

    public List<Long> getStaffPermissionAll(String staffId,String  roleId);

    public List<Long> getStaffPermissionByStaffId(String staffId,Integer type);

    /**
     * 个人权限
     *
     * @param staffId
     * @param staffPermissionList
     * @return
     */
    public Boolean updateStaffPermissionByStaffId(String staffId,List<Long> staffPermissionList);


}
